package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProductPictureMapper;
import com.ruoyi.system.domain.ProductPicture;
import com.ruoyi.system.service.IProductPictureService;

/**
 * 商品图片全部路径Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-06
 */
@Service
public class ProductPictureServiceImpl implements IProductPictureService 
{
    @Autowired
    private ProductPictureMapper productPictureMapper;

    /**
     * 查询商品图片全部路径
     * 
     * @param id 商品图片全部路径主键
     * @return 商品图片全部路径
     */
    @Override
    public ProductPicture selectProductPictureById(Long id)
    {
        return productPictureMapper.selectProductPictureById(id);
    }

    /**
     * 查询商品图片全部路径列表
     * 
     * @param productPicture 商品图片全部路径
     * @return 商品图片全部路径
     */
    @Override
    public List<ProductPicture> selectProductPictureList(ProductPicture productPicture)
    {
        return productPictureMapper.selectProductPictureList(productPicture);
    }

    /**
     * 新增商品图片全部路径
     * 
     * @param productPicture 商品图片全部路径
     * @return 结果
     */
    @Override
    public int insertProductPicture(ProductPicture productPicture)
    {
        return productPictureMapper.insertProductPicture(productPicture);
    }

    /**
     * 修改商品图片全部路径
     * 
     * @param productPicture 商品图片全部路径
     * @return 结果
     */
    @Override
    public int updateProductPicture(ProductPicture productPicture)
    {
        return productPictureMapper.updateProductPicture(productPicture);
    }

    /**
     * 批量删除商品图片全部路径
     * 
     * @param ids 需要删除的商品图片全部路径主键
     * @return 结果
     */
    @Override
    public int deleteProductPictureByIds(Long[] ids)
    {
        return productPictureMapper.deleteProductPictureByIds(ids);
    }

    /**
     * 删除商品图片全部路径信息
     * 
     * @param id 商品图片全部路径主键
     * @return 结果
     */
    @Override
    public int deleteProductPictureById(Long id)
    {
        return productPictureMapper.deleteProductPictureById(id);
    }
}
